package com.wws.family

import android.app.Application
import android.content.Context
import android.util.Log
import android.view.Gravity
import com.wika.basics.widget.TipsToast

/**
 *@Description:
 *@Date: 2025/1/7 8:36
 *@Author: WangWeiShuo
 */
class MyApp: Application() {

    private val TAG = "wws_MyAPP"

    override fun onCreate() {
        super.onCreate()
        Log.w(TAG, "onCreate: MyAPP")
        TipsToast.init(this, Gravity.CENTER)
//        WKMMKVUtils.instance.init(this,"wika")
    }

    init {
        instance = this
    }

    companion object {
        private var instance: MyApp? = null

        fun applicationContext() : Context {
            return instance!!.applicationContext
        }
    }
}